<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:80:"E:\UPUPW_NP7.0\htdocs\filtrs\public/../application/admin\view\supplier\edit.html";i:1514119981;s:80:"E:\UPUPW_NP7.0\htdocs\filtrs\public/../application/admin\view\public\header.html";i:1513170887;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>滤易管理平台</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="<?php echo $PUBLIC_STATIC_SRC['__ADMIN_LAY__']; ?>/css/layui.css" media="all" />
	<link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all" />
	<link rel="stylesheet" href="<?php echo $PUBLIC_STATIC_SRC['__ADMIN_CSS__']; ?>/login.css" media="all" />
	<link rel="stylesheet" href="<?php echo $PUBLIC_STATIC_SRC['__ADMIN_CSS__']; ?>/main.css" media="all" />
	<script type="text/javascript" src="<?php echo $PUBLIC_STATIC_SRC['__ADMIN_LAY__']; ?>/layui.js"></script>
	<script type="text/javascript" src="<?php echo $PUBLIC_STATIC_SRC['__ADMIN_JS__']; ?>/common.js"></script>
</head>
<body class="childrenBody">
	<form class="layui-form">
		<div class="layui-tab">
			<ul class="layui-tab-title">
				<li class="layui-this">基本档案</li>
				<li>车型库权限</li>
			</ul>
			<div class="layui-tab-content">
				<div class="layui-tab-item layui-show" style="position:static;margin-top:10px;">
					<div class="layui-form-item">
						<label class="layui-form-label">企业名称</label>
						<div class="layui-input-block">
							<input type="text" name="CompName" class="layui-input" lay-verify="required" placeholder="请输入企业名称" value="<?php echo $view['comp_name']; ?>" >
						</div>
					</div>
					 <div class="layui-form-item">
						<label class="layui-form-label">主体类型</label>
						<div class="layui-input-block">
							<input type="radio" name="CompType" value="1" title="生产制造商" <?php if($view['comp_type'] == '1'): ?>checked<?php endif; ?>>
							<input type="radio" name="CompType" value="2" title="品牌运营商" <?php if($view['comp_type'] == '1'): ?>checked<?php endif; ?>>
							<input type="radio" name="CompType" value="3" title="渠道经销商" <?php if($view['comp_type'] == '1'): ?>checked<?php endif; ?>>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">登录手机号</label>
						<div class="layui-input-block">
							<input type="text" name="SupplierMobile" class="layui-input" lay-verify="required" placeholder="请输入登录手机号" value="<?php echo $view['supplier_mobile']; ?>" >
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">登录密码</label>
						<div class="layui-input-block">
							<input type="password" name="SupplierPass" class="layui-input" lay-verify="required" placeholder="请输入登录密码" value="<?php echo $view['supplier_pass']; ?>" >
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">联系人</label>
						<div class="layui-input-block">
							<input type="text" name="ContactName" class="layui-input" lay-verify="required" placeholder="请输入联系人" value="<?php echo $view['contact_name']; ?>" >
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">联系电话</label>
						<div class="layui-input-block">
							<input type="text" name="ContactMobile" class="layui-input" lay-verify="required" placeholder="请输入联系电话" value="<?php echo $view['contact_mobile']; ?>" >
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">省/市/区</label>
						<div class="layui-input-inline">
							<select name="ProId" lay-filter="SelectPro" lay-search>
								<option value="">请选择省</option>
								<?php if(is_array($pro_list) || $pro_list instanceof \think\Collection || $pro_list instanceof \think\Paginator): $i = 0; $__LIST__ = $pro_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$p): $mod = ($i % 2 );++$i;?>
									<option value="<?php echo $p['id']; ?>"  <?php if($p['id'] == $view['pro_id']): ?>selected<?php endif; ?>><?php echo $p['name']; ?></option>
								<?php endforeach; endif; else: echo "" ;endif; ?>
							</select>
						</div>
						<div class="layui-input-inline" id="CityList">
							<select name="CityId" lay-filter="SelectCity" lay-search>
								<option value="">请选择市</option>
								<?php if(is_array($cities_list) || $cities_list instanceof \think\Collection || $cities_list instanceof \think\Paginator): $i = 0; $__LIST__ = $cities_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$c): $mod = ($i % 2 );++$i;?>
									<option value="<?php echo $c['id']; ?>"  <?php if($c['id'] == $view['city_id']): ?>selected<?php endif; ?>><?php echo $c['name']; ?></option>
								<?php endforeach; endif; else: echo "" ;endif; ?>
							</select>
						</div>
						<div class="layui-input-inline" id="DistrctList">
							<select name="DistrictId" lay-search>
								<option value="">请选择县/区</option>
								<?php if(is_array($distrinct) || $distrinct instanceof \think\Collection || $distrinct instanceof \think\Paginator): $i = 0; $__LIST__ = $distrinct;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$d): $mod = ($i % 2 );++$i;?>
									<option value="<?php echo $d['id']; ?>"  <?php if($d['id'] == $view['district_id']): ?>selected<?php endif; ?>><?php echo $d['name']; ?></option>
								<?php endforeach; endif; else: echo "" ;endif; ?>
							</select>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">详细地址</label>
						<div class="layui-input-block">
							<input type="text" name="Address" lay-verify="title" autocomplete="off" placeholder="请输入详细地址" class="layui-input" value="<?php echo $view['address']; ?>" >
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label">是否启用</label>
							<div class="layui-input-block">
								<input type="checkbox" name="show" class="isShow" title="启用" <?php if($view['supplier_status'] == '1'): ?>checked<?php endif; ?> >
							</div>
						</div>
					</div>
				</div>
				<div class="layui-tab-item" style="position:static;margin-top:10px;">
					<div class="layui-form-item">
						<label class="layui-form-label">车型库</label>
						<?php if(is_array($f_c_list) || $f_c_list instanceof \think\Collection || $f_c_list instanceof \think\Paginator): $i = 0; $__LIST__ = $f_c_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$f): $mod = ($i % 2 );++$i;?>
							<div class="layui-input-block">
								<input type="checkbox" name="role_ids[]" lay-skin="primary" title="<?php echo $f['name']; ?>" value="<?php echo $f['id']; ?>" <?php if(in_array(($f['id']), is_array($roles_ids)?$roles_ids:explode(',',$roles_ids))): ?> checked <?php endif; ?> >
							</div>
						<?php endforeach; endif; else: echo "" ;endif; ?>
					</div>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<input type="hidden" name="supplier_id" class="" value="<?php echo $view['id']; ?>">
				<button class="layui-btn" lay-submit="" lay-filter="addSupplier">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		</div>
	</form>
	<script type="text/javascript" src="<?php echo $PUBLIC_STATIC_SRC['__ADMIN_JS__']; ?>/supplier/supplierAdd.js"></script>
</body>
</html>